<?php
$id=$_GET['id'];
$dbh  = new  PDO ( 'mysql:host=localhost;dbname=mhsw' , 'root' , 'root' );
$sql="delete from jj where id ='$id'";
$sqldo=$dbh->exec($sql);
if($sqldo)
{
   echo 1;
}
else
{
    echo 2;
}
?>